/*
 * @Author: your name
 * @Date: 2023-08-10 16:34:33
 * @LastEditTime: 2023-08-10 17:11:49
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \thermalCamera\showImage.h
 */
#ifndef SHOWIMAGE_H
#define SHOWIMAGE_H
#include <QMainWindow>
#include "ui_mainwindow.h"
#include <QtCore>
#include <QApplication>
#include <QDebug>
#include <QString>
#include <QQueue>
#include <QImage>
#include <QGraphicsScene>
#include <qtimer.h>
#include <opencv2/opencv.hpp>

#define COLS 800 // 列，对应宽
#define ROWS 600 // 行，对应高
class ShowImage
{

public:
    ShowImage(Ui::MainWindow *_ui, QTimer* _timer):ui(_ui),showTimer(_timer){

        scene = new QGraphicsScene();
        src_pic = cv::Mat(2048,2448,CV_8UC1);
    }
    ~ShowImage(){};
    void ShowImageInGrap(QImage* img);

public slots:
    void Show(void);
    void Save();
    void StartStopTimer(void);

private:
    Ui::MainWindow *ui;
    // 显示框
	QGraphicsScene* scene;


    QTimer* showTimer;

    cv::Mat src_pic;
    cv::Mat dst_pic;



};




#endif
